﻿using System.ComponentModel;
using System.IO;

namespace WindowsAPI
{
    public partial class FileSystemComponent : Component
    {
        /* ------------------------------------------------------------------------------------------ */



        /* ------------------------------------------------------------------------------------------ */



        /* ------------------------------------------------------------------------------------------ */

        public DriveInfo[] Drives { get { return DriveInfo.GetDrives(); } }

        public DirectoryInfo this[DriveInfo drive] { get { return drive.RootDirectory; } }

        /* ------------------------------------------------------------------------------------------ */

        public FileSystemComponent() { InitializeComponent(); }

        public FileSystemComponent(IContainer container) { container.Add(this); InitializeComponent(); }

        /* ------------------------------------------------------------------------------------------ */



        /* ------------------------------------------------------------------------------------------ */
    }
}
